home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / fpu881 / src6.zoo / asin.s < prev    next >
Text File  |  1991-09-24  |  576b  |  31 lines

  1. # pml compatible lib for the atari sfp004
  2. #
  3. # Michael Ritzert, Oktober 1990
  4. # ritzert@dfg.dbp.de
  5. #
  6. # FUNCTION:    ASIN(X)
  7. #
  8. # base =    0xfffa50
  9. #      the fpu addresses are taken relative to "base":
  10. comm =     -6
  11. resp =    -16
  12. zahl =      0
  13.  
  14. .text
  15. #LC0:
  16. #    .ascii "asin: DOMAIN error\12\15\0"
  17.     .even
  18. .globl _asin
  19. _asin:
  20.     lea    0xfffa50,a0
  21.     movew    #0x540c,a0@(comm)    | specify function
  22.     cmpiw    #0x8900,a0@(resp)    | check
  23.     movel    a7@(4),a0@        | load arg_hi
  24.     movel    a7@(8),a0@        | load arg_low
  25.     movew    #0x7400,a0@(comm)    | result to d0
  26. # wait
  27.     .long    0x0c688900, 0xfff067f8
  28.     movel    a0@,d0
  29.     movel    a0@,d1
  30.     rts
  31.